package edu.sctu.wangfuxin.day20150517;

/**
 * Created by user06 on 2015/5/17.
 */
public class TextChild extends Abstract {
    Student[] studentarray = new Student[10];
    public TextChild(Student[] studentarray){
        super(studentarray);
        this.studentarray = studentarray;
    }
    @Override
    public void GetSysTem(){
        int sum = 0;
        for(int i = 1;i<10;i++){
            if(studentarray[i].getScore()>=60){
                System.out.println("姓名："+studentarray[i].getName()+"  "+"学号："+studentarray[i].getNumber()+"  "+"性别:"+studentarray[i].getSex()+"  "+"年龄："+studentarray[i].getAge()+"  "+"成绩："+studentarray[i].getScore()+"  "+"地址:"+studentarray[i].getLoc());
                sum =sum+1;
            }

        }
        System.out.println("满足成绩大于60的人数为："+ sum);
    }
}
